import 'package:enterprise_v6_app/app/data/entities/application/special_list/working_personnel_entity.dart';
import 'package:get/get.dart';

class MoreWorkingPersonController extends GetxController {

  List<WorkingPersonnelEntity> listAll = Get.arguments as List<WorkingPersonnelEntity>;
  List<WorkingPersonnelEntity> list = [];

  // 搜索
  search(String? v) {
    if(v != '' && v != null) {
      list = listAll.where((element) => element.operatorUserName!.contains(v)).toList();
    } else {
      list = listAll;
    }
    update();
  }

  @override
  void onInit() {
    super.onInit();
    list = listAll;
  }

}
